package com.star.sso.repository.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 用户表(SysUser)SysUser  实体类
 *
 * @author zhouhengzhe
 * @since 2024-01-08 23:53:44
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@EqualsAndHashCode(callSuper = true)
@TableName("sys_user")
public class SysUserPO extends BaseSsoPO {

    @Schema(description = "用户名")
    private String username;

    private String password;

    @Schema(description = "随机盐")
    private String salt;

    /**
     * @see com.star.common.core.contract.enums.StatusEnum
     */
    @Schema(description = "用户状态,0:禁用,1:正常")
    private Integer status;

    @Schema(description = "用户手机号")
    private Integer mobile;

    @Schema(description = "用户邮箱")
    private String email;

    @Schema(description = "岗位ID")
    private String positionId;

    @Schema(description = "用户所属部门id")
    private String deptId;

}
